﻿@model IEnumerable<Guan.CMS.Model.Dto.ProductCategoryDto>
@{
    ViewBag.Title = "产品分类列表";
    ViewBag.SectionTitleImage = "ico-catalog.png";
}
<div class="section-header">
    <div class="title">
        @if (ViewBag.SectionTitleImage != null)
        {
            <img src="@Url.Content("~/Content/Images/Admin/" + ViewBag.SectionTitleImage)" alt="" />
        }
        @ViewBag.Title
    </div>
    <div class="options">
        @Html.ActionLink("新增","Create","Product",null,new{@class="k-button"})
    </div>
</div>
<div class="section-body">
    @(Html.Kendo().TreeView().Name("ProductCategoryTree")
        .DataTextField("Name")
        .DataSource(dataSource=> dataSource
            .Read(read => read.Action("TreeData","ProductCategory"))
        )
          )
</div>